#ifndef PROJECT_H
#define PROJECT_H

#include <QList>
#include <QPair>
#include <QString>
#include "yamlstream.h"

#ifdef WIN32
# define PATH_SLASH '\\'
#else
# define PATH_SLASH '/'
#endif

class Project
{
public:
    typedef QPair<QString, QString> Level;

    Project() {}
    Project(const QString& path);
    Project(const QString& name, const QString& path);

    QList<Level>&       Levels()       { return (_levels); }
    const QList<Level>& Levels() const { return (_levels); }
    const QString&      Path() const   { return (_path);   }
    const QString&      Name() const   { return (_name);   }

    bool                Save(void);

    bool         _loadedWithSuccess;
private:
    QString      _name;
    QString      _path;
    QList<Level> _levels;
};

#endif // PROJECT_H
